#ifndef HIMAGESETTING_H
#define HIMAGESETTING_H

#include <QWidget>

class QEventLoop;
class QAbstractItemModel;
namespace Ui
{
    class GxImageSetting;
}

class GxImageSetting : public QWidget
{
    Q_OBJECT

public:
    explicit GxImageSetting(QWidget *parent = nullptr);
    ~GxImageSetting();

    void show();

    void setModel(QAbstractItemModel* model);

protected:
    virtual bool eventFilter(QObject *watched, QEvent *event) override;


private:
    void slotLanguageIndexChanged(int index);

Q_SIGNALS:
    void signalToAddDir(const QString& strDirPath);
    void signalToRemoveDir(const QString& strDirPath);
    void signalIntervalChanged(int value);
    void signalResetGeometry();

private:
    Ui::GxImageSetting *ui;
    QEventLoop *m_pEventLoop;
};

#endif // HIMAGESETTING_H
